<?php

declare(strict_types=1);

namespace App\Request\Client\TaskEmployer;


use App\Constants\Model\Task;
use Hyperf\Validation\Request\FormRequest;
use Hyperf\Validation\Rule;

class UpdateShowStatusRequest extends FormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'status' => [
                'required',
                Rule::in(
                    [
                        Task::SHOW_STATUS_OFFLINE,
                        Task::SHOW_STATUS_ONLINE
                    ]
                )
            ],
        ];
    }


}